package com.liangdemo.web.upload;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Mr.Liang
 * @date 2022/5/24 16:00
 */
@Data
@TableName("attachment_file")
public class AttachmentFile  implements Serializable {
    @TableId
    private String id;

    /**
     * 文件名
     */
    private String name;

    /**
     * 文件物理相对路径
     */
    private String path;

    /**
     * 文件大小，默认字节
     */
    private Long size;


    @TableField(value = "md5")
    private String md5;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
